package com.yuantong.xyerp.core.provider.service;

import com.yuantong.xyerp.core.api.dto.UserDto;
import com.yuantong.xyerp.core.api.service.IOrganizationService;
import com.yuantong.xyerp.core.api.vo.OrganizationVo;
import com.yuantong.xyerp.core.provider.dao.OrganizationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Jianguo.Yin on 2021-07-18.
 */
@Service
public class OrganizationServicImpl implements IOrganizationService {
    @Resource
    private OrganizationMapper organizationMapper;

    @Override
    public OrganizationVo findOrganizationByName(UserDto user) {
        return organizationMapper.findOrganizationByName(user);
    }
}
